/* ==========================================================================
   Random Toys - dark theme for OpenCart 4.1.x
   Loaded after stylesheet.css (see common/header.twig). Bootstrap 5.3 dark
   mode is enabled via <html data-bs-theme="dark">.
   ========================================================================== */

:root,
[data-bs-theme="dark"] {
  --rt-bg: #0b0d14;
  --rt-surface: #141827;
  --rt-surface-2: #1b2033;
  --rt-border: #272d44;
  --rt-text: #e8eaf3;
  --rt-muted: #9aa1b8;
  --rt-yellow: #ffc800;
  --rt-yellow-hover: #ffd83d;
  --rt-blue: #4d7cff;
  --rt-blue-deep: #1a1ae0;
  --rt-radius: 14px;

  --bs-body-bg: var(--rt-bg);
  --bs-body-bg-rgb: 11, 13, 20;
  --bs-body-color: var(--rt-text);
  --bs-body-color-rgb: 232, 234, 243;
  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-secondary-color: var(--rt-muted);
  --bs-tertiary-bg: var(--rt-surface);
  --bs-secondary-bg: var(--rt-surface-2);
  --bs-border-color: var(--rt-border);
  --bs-primary: var(--rt-yellow);
  --bs-primary-rgb: 255, 200, 0;
  --bs-link-color: var(--rt-yellow);
  --bs-link-color-rgb: 255, 200, 0;
  --bs-link-hover-color: var(--rt-yellow-hover);
  --bs-link-hover-color-rgb: 255, 216, 61;
  --bs-border-radius: 10px;
  --bs-emphasis-color: #fff;
}

body { background: var(--rt-bg); color: var(--rt-text); font-family: var(--bs-body-font-family); }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  color: #fff;
  font-family: "Fredoka", "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: .2px;
}
a { text-decoration: none; }
legend { border-bottom-color: var(--rt-border); color: #fff; font-family: "Fredoka", sans-serif; }
label { font-size: 13px; color: var(--rt-muted); }
::selection { background: var(--rt-yellow); color: #111; }

/* ---- layout: let the footer flow normally (default theme pins it) ------- */
#container { position: static; display: flex; flex-direction: column; min-height: 100vh; margin: 0; }
#container > main { flex: 1 0 auto; padding-bottom: 40px; }
#content, #column-left, #column-right { padding-bottom: 0; }
footer { position: static; flex-shrink: 0; }

/* ---- buttons ------------------------------------------------------------ */
.btn { border-radius: 999px; font-weight: 600; }
.btn-primary {
  --bs-btn-color: #14110a; --bs-btn-bg: var(--rt-yellow); --bs-btn-border-color: var(--rt-yellow);
  --bs-btn-hover-color: #14110a; --bs-btn-hover-bg: var(--rt-yellow-hover); --bs-btn-hover-border-color: var(--rt-yellow-hover);
  --bs-btn-active-color: #14110a; --bs-btn-active-bg: #e6b400; --bs-btn-active-border-color: #e6b400;
  --bs-btn-disabled-color: #14110a; --bs-btn-disabled-bg: #7a6620; --bs-btn-disabled-border-color: #7a6620;
  --bs-btn-focus-shadow-rgb: 255, 200, 0;
}
.btn-light, .btn-secondary {
  --bs-btn-color: #fff; --bs-btn-bg: var(--rt-surface-2); --bs-btn-border-color: var(--rt-border);
  --bs-btn-hover-color: #14110a; --bs-btn-hover-bg: var(--rt-yellow); --bs-btn-hover-border-color: var(--rt-yellow);
  --bs-btn-active-color: #14110a; --bs-btn-active-bg: var(--rt-yellow); --bs-btn-active-border-color: var(--rt-yellow);
}
.btn-dark {
  --bs-btn-color: #fff; --bs-btn-bg: var(--rt-surface-2); --bs-btn-border-color: var(--rt-border);
  --bs-btn-hover-color: #14110a; --bs-btn-hover-bg: var(--rt-yellow); --bs-btn-hover-border-color: var(--rt-yellow);
  --bs-btn-active-color: #14110a; --bs-btn-active-bg: var(--rt-yellow); --bs-btn-active-border-color: var(--rt-yellow);
}
.btn-outline-primary { --bs-btn-color: var(--rt-yellow); --bs-btn-border-color: var(--rt-yellow); --bs-btn-hover-bg: var(--rt-yellow); --bs-btn-hover-border-color: var(--rt-yellow); --bs-btn-hover-color: #14110a; }
.btn-outline-light { --bs-btn-color: #fff; --bs-btn-border-color: #5a6280; --bs-btn-hover-bg: #fff; --bs-btn-hover-color: #0b0d14; }

/* ---- forms -------------------------------------------------------------- */
.form-control, .form-select {
  background-color: var(--rt-surface); border-color: var(--rt-border); color: var(--rt-text);
}
.form-control:focus, .form-select:focus {
  background-color: var(--rt-surface-2); border-color: var(--rt-yellow); color: #fff;
  box-shadow: 0 0 0 .2rem rgba(255, 200, 0, .18);
}
.form-control::placeholder { color: #6f7691; }
.form-check-input:checked { background-color: var(--rt-yellow); border-color: var(--rt-yellow); }
div.required .col-form-label:before, div.required .form-label:before { color: #ff6b6b; }

/* ---- announcement bar --------------------------------------------------- */
#announce {
  background: linear-gradient(90deg, var(--rt-blue-deep), #2f4bff 60%, #4d7cff);
  color: #fff; font-size: 13px; font-weight: 600; padding: 7px 0; letter-spacing: .3px;
}
#announce a { color: #fff; }
#announce a:hover { color: var(--rt-yellow); }

/* ---- header ------------------------------------------------------------- */
#site-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(11, 13, 20, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rt-border);
}
#logo { margin: 0; text-align: left; }
#logo img { max-height: 58px; width: auto; max-width: 160px; border-radius: 12px; }
#logo h1 { font-size: 1.5rem; margin: 0; }
#logo h1 a { color: var(--rt-yellow); }

#header-search { max-width: 640px; }
#search, #header-search form, #site-header form.input-group { margin-bottom: 0 !important; }
#site-header .input-group .form-control {
  height: 44px; font-size: 14px; padding: 0 18px;
  border-radius: 999px 0 0 999px; background: var(--rt-surface); border-color: var(--rt-border);
}
#site-header .input-group .btn {
  padding: 0 22px; line-height: 1; font-size: 15px;
  border-radius: 0 999px 999px 0; background: var(--rt-yellow); border-color: var(--rt-yellow); color: #14110a;
}
#site-header .input-group .btn:hover { background: var(--rt-yellow-hover); }

.header-actions .action, .header-actions #cart .btn {
  display: inline-flex; align-items: center; gap: 8px; color: var(--rt-text);
  padding: 9px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; line-height: 1;
}
.header-actions .action:hover { background: var(--rt-surface-2); color: var(--rt-yellow); }
.header-actions #cart { margin: 0; }
.header-actions #cart .btn {
  background: var(--rt-yellow); border: 0; color: #14110a; width: auto; white-space: nowrap;
  font-size: 14px; padding: 10px 16px;
}
.header-actions #cart .btn:hover { background: var(--rt-yellow-hover); }
.header-actions #cart .dropdown-menu { min-width: 340px; background: var(--rt-surface); border: 1px solid var(--rt-border); border-radius: var(--rt-radius); }
@media (max-width: 767px) {
  .header-actions #cart .dropdown-menu { min-width: 92vw; }
  .header-actions #cart .btn { padding: 10px 12px; }
}
#cart .btn-lg { font-size: 14px; padding: 10px 16px; }
#cart .dropdown-menu { background: var(--rt-surface); }
.dropdown-menu { background: var(--rt-surface); border-color: var(--rt-border); border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.dropdown-item { color: var(--rt-text); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--rt-surface-2); color: var(--rt-yellow); }

/* ---- category menu ------------------------------------------------------ */
#menu, #menu.bg-primary {
  background: transparent !important; background-image: none; border: 0; border-radius: 0;
  border-bottom: 1px solid var(--rt-border); margin-bottom: 26px; padding: 0; min-height: 0;
}
#menu #category { color: #fff; text-shadow: none; font-family: "Fredoka", sans-serif; line-height: 46px; }
#menu .navbar-nav > li > a {
  color: var(--rt-text); text-shadow: none; text-transform: uppercase; letter-spacing: .8px;
  font-size: 13px; font-weight: 700; padding: 14px 16px; border-bottom: 3px solid transparent;
}
#menu .navbar-nav > li > a:hover, #menu .navbar-nav > li.show > a {
  background: transparent; color: var(--rt-yellow); border-bottom-color: var(--rt-yellow);
}
#menu .navbar-toggler { border-color: var(--rt-border); }
#menu .navbar-toggler i { color: #fff; }
#menu .dropdown-menu { border-radius: 0 0 12px 12px; margin-top: 0; }
#menu .dropdown-item { font-size: 14px; padding: 7px 18px; }
@media (max-width: 991px) {
  #menu .navbar-nav > li > a { border-bottom: 0; padding: 10px 6px; }
}

/* ---- hero (home.twig) --------------------------------------------------- */
.rt-hero {
  position: relative; overflow: hidden; border-radius: 22px; margin: 6px 0 34px;
  padding: clamp(32px, 6vw, 84px) clamp(22px, 5vw, 70px);
  background:
    radial-gradient(600px 300px at 88% 20%, rgba(255, 200, 0, .28), transparent 60%),
    radial-gradient(700px 400px at 10% 110%, rgba(77, 124, 255, .35), transparent 60%),
    linear-gradient(135deg, #10143a 0%, #1a1ae0 140%);
  border: 1px solid var(--rt-border);
}
.rt-hero-text { position: relative; max-width: 620px; }
.rt-eyebrow { display: inline-block; color: var(--rt-yellow); font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.rt-hero h1 { font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.05; margin-bottom: 14px; }
.rt-hero h1 span { color: var(--rt-yellow); }
.rt-hero p { color: #cfd5ee; font-size: 1.1rem; margin-bottom: 22px; }

/* ---- module headings (Featured / Latest / Bestseller) ------------------- */
#content > h3, #content .row + h3, #content h3 {
  font-size: 1.6rem; margin: 10px 0 18px; padding-left: 14px; border-left: 5px solid var(--rt-yellow);
}

/* ---- product cards ------------------------------------------------------ */
.product-thumb {
  background: var(--rt-surface); border: 1px solid var(--rt-border); border-radius: var(--rt-radius);
  overflow: hidden; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.product-thumb:hover { transform: translateY(-4px); border-color: var(--rt-yellow); box-shadow: 0 14px 30px rgba(0, 0, 0, .45); }
.product-thumb .image { background: #f1f2f7; }
.product-thumb .image a:hover { opacity: 1; }
.product-thumb .image img { width: 100%; height: auto; transition: transform .3s ease; }
.product-thumb:hover .image img { transform: scale(1.04); }
.product-thumb .description { padding: 14px 16px; margin-bottom: 46px; }
.product-thumb .description h4 { font-family: "Inter", sans-serif; font-size: 15px; font-weight: 600; line-height: 1.35; }
.product-thumb .description h4 a { color: #fff; }
.product-thumb .description h4 a:hover { color: var(--rt-yellow); }
.product-thumb .description p { color: var(--rt-muted); font-size: 13px; }
.product-thumb .button button {
  background: var(--rt-surface-2); color: var(--rt-muted); border-top: 1px solid var(--rt-border); line-height: 42px;
}
.product-thumb .button button + button { border-left-color: var(--rt-border); }
.product-thumb .button button:hover { background: var(--rt-yellow); color: #14110a; }
.product-thumb .button button:first-child { color: var(--rt-yellow); }
.product-thumb .button button:first-child:hover { color: #14110a; }
@media (min-width: 960px) {
  .product-list .product-thumb .button { border-left: 1px solid var(--rt-border); }
}

.price { color: #fff; font-size: 1.05rem; }
.price-new { font-weight: 700; color: var(--rt-yellow); }
.price-old { color: var(--rt-muted); }
.price-tax { color: var(--rt-muted); }
.rating .fa-star { color: #ffc800; }
.rating .fa-star + .fa-star { color: #ffc800; }

/* ---- breadcrumb --------------------------------------------------------- */
.breadcrumb { background: transparent; border: 0; padding: 0; margin: 4px 0 22px; font-size: 13px; }
.breadcrumb > li.breadcrumb-item { text-shadow: none; padding: 0 12px 0 0; }
.breadcrumb > li.breadcrumb-item:after { display: none; }
.breadcrumb > li.breadcrumb-item + li:before { content: "/"; color: var(--rt-muted); padding-right: 12px; float: none; }
.breadcrumb a { color: var(--rt-muted); }
.breadcrumb a:hover { color: var(--rt-yellow); }

/* ---- product page / tables / lists ------------------------------------- */
.img-thumbnail { background: #f1f2f7; border-color: var(--rt-border); border-radius: 12px; }
#product .price, .product-info .price { font-size: 1.6rem; }
.nav-tabs { border-bottom-color: var(--rt-border); }
.nav-tabs .nav-link { color: var(--rt-muted); font-weight: 600; }
.nav-tabs .nav-link:hover { color: #fff; border-color: transparent; }
.nav-tabs .nav-link.active { background: var(--rt-surface); border-color: var(--rt-border) var(--rt-border) var(--rt-surface); color: var(--rt-yellow); }
.table { --bs-table-bg: transparent; --bs-table-border-color: var(--rt-border); }
.list-group-item { background: var(--rt-surface); border-color: var(--rt-border); color: var(--rt-text); }
.list-group-item.active { background: var(--rt-yellow); border-color: var(--rt-yellow); color: #14110a; }
.card { background: var(--rt-surface); border-color: var(--rt-border); border-radius: var(--rt-radius); }
.well, .accordion-item { background: var(--rt-surface); border-color: var(--rt-border); }
.accordion-button:not(.collapsed) { background: var(--rt-surface-2); color: var(--rt-yellow); }
.modal-content { background: var(--rt-surface); border: 1px solid var(--rt-border); border-radius: var(--rt-radius); }
.alert { border-radius: 12px; }
.page-link { background: var(--rt-surface); border-color: var(--rt-border); color: var(--rt-text); }
.page-link:hover { background: var(--rt-surface-2); color: var(--rt-yellow); }
.page-item.active .page-link { background: var(--rt-yellow); border-color: var(--rt-yellow); color: #14110a; }
.badge.bg-primary { color: #14110a; }
hr { border-color: var(--rt-border); opacity: 1; }

/* ---- footer ------------------------------------------------------------- */
footer {
  background: #07080d; border-top: 1px solid var(--rt-border); color: var(--rt-muted); padding: 44px 0 22px;
}
footer h5 {
  font-family: "Fredoka", sans-serif; font-size: 16px; font-weight: 600; color: #fff; margin: 0 0 14px;
}
footer .footer-brand h5 { font-size: 22px; color: var(--rt-yellow); }
footer a { color: var(--rt-muted); }
footer a:hover { color: var(--rt-yellow); }
footer ul li { margin-bottom: 8px; font-size: 14px; }
footer hr { border-color: var(--rt-border); margin: 28px 0 18px; }
footer .pay-icons i { font-size: 30px; color: #6b7290; margin-left: 6px; }

/* ---- cookie bar --------------------------------------------------------- */
#cookie { background: var(--rt-surface-2); border-top: 1px solid var(--rt-border); height: auto; padding: 16px 0; }
#cookie div { font-size: 14px; }

/* ---- PayPal checkout (PayPal draws its buttons/card fields in white, so
        present them on an intentional light card that matches the dark theme) ---- */
#checkout-payment {
  background: #fff; color: #1a1d29; border-radius: 16px; padding: 22px 20px 20px;
  margin: 18px 0 8px; border: 1px solid #d9dcea; box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
#checkout-payment::before {
  content: "\f023  Secure payment \2014  PayPal or credit / debit card";
  font-family: "Font Awesome 6 Free", "Inter", sans-serif; font-weight: 900;
  display: block; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid #e6e8f1;
  font-size: 13px; letter-spacing: .3px; color: #4b5068;
}
#checkout-payment #paypal_form, #checkout-payment .paypal-message,
#checkout-payment .paypal-button, #checkout-payment .paypal-card { background: transparent; }
#checkout-payment #paypal_message { margin-bottom: 14px; min-height: 0; }
#checkout-payment #paypal_button { padding-top: 0 !important; }
#checkout-payment #paypal_card { margin-top: 18px; padding-top: 18px; border-top: 1px dashed #d9dcea; }
#checkout-payment #paypal_card::before {
  content: "Or pay with a card"; display: block; margin-bottom: 12px;
  font-size: 13px; font-weight: 600; color: #4b5068;
}
#checkout-payment #paypal_card_container, #checkout-payment #paypal_card_form {
  background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important;
}
#checkout-payment .card-button button, #checkout-payment #paypal_card_form button {
  background: #ffc800 !important; color: #14110a !important; border: 0 !important;
  border-radius: 999px !important; font-weight: 700 !important; padding: 13px 18px !important;
}
#checkout-payment .card-button button:hover { background: #ffd83d !important; }
#checkout-payment .card-button button:disabled, #checkout-payment #paypal_card_form button:disabled {
  background: #e6e8f1 !important; color: #9aa1b8 !important; cursor: not-allowed;
}
#checkout-payment a { color: #0b57d0; }

/* ---- PayPal Fastlane / card form: PayPal hard-codes text-align:right and width:350px inline ---- */
#checkout-payment #fastlane_card { text-align: center !important; margin-top: 4px; }
#checkout-payment #fastlane_card_container { display: block !important; width: 100% !important; max-width: 440px; margin: 0 auto !important; }
#checkout-payment #fastlane_card_form { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; margin-bottom: 8px !important; text-align: left; }
#checkout-payment #fastlane_card_form .card-button, #checkout-payment #fastlane_card_form .fastlane-card-button-container { padding: 0 !important; }
#checkout-payment #fastlane_card_form button { background: #ffc800 !important; color: #14110a !important; border: 0 !important; border-radius: 999px !important; font-weight: 700 !important; padding: 13px 18px !important; width: 100%; }
#checkout-payment #fastlane_card_form button:disabled { background: #e6e8f1 !important; color: #9aa1b8 !important; }

/* ---- product grid: 2 per row on phones, 3 on tablets, 4 on desktop.
        Enforced here because OpenCart's list/grid toggle script resets the column classes. ---- */
#product-list:not(.product-list) > * { flex: 0 0 auto; width: 50%; }
@media (min-width: 768px) { #product-list:not(.product-list) > * { width: 33.3333%; } }
@media (min-width: 992px) { #product-list:not(.product-list) > * { width: 25%; } }
@media (max-width: 575px) {
  #product-list:not(.product-list) .product-thumb .description { padding: 10px 12px; }
  #product-list:not(.product-list) .product-thumb .description h4 { font-size: 13px; }
  #product-list:not(.product-list) .product-thumb .description p { display: none; }
}

/* ---- PayPal on the shopping cart page: same light-card treatment as checkout ---- */
#shopping-cart #paypal_message {
  background: #fff; color: #1a1d29; border: 1px solid #d9dcea; border-radius: 12px;
  padding: 10px 16px; margin: 14px 0 8px;
}
#shopping-cart #paypal_message a { color: #0b57d0; }
#content > #paypal_button {
  max-width: 440px; margin: 20px 0 10px auto; background: #fff; color: #1a1d29;
  border: 1px solid #d9dcea; border-radius: 16px; padding: 18px 18px 12px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35); text-align: left !important;
}
#content > #paypal_button::before {
  content: "\f023  Or check out faster with PayPal";
  font-family: "Font Awesome 6 Free", "Inter", sans-serif; font-weight: 900;
  display: block; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid #e6e8f1;
  font-size: 13px; letter-spacing: .3px; color: #4b5068;
}
#content > #paypal_button #paypal_button_container { width: 100% !important; display: block !important; }
@media (max-width: 575px) { #content > #paypal_button { max-width: none; margin-left: 0; } }

/* ---- "by completing your purchase you agree..." notice (cart + checkout) ---- */
.rt-terms-note { font-size: 12.5px; line-height: 1.5; color: var(--rt-muted); margin: 10px 0 0; }
.rt-terms-note a { color: var(--rt-yellow); text-decoration: underline; text-underline-offset: 2px; }
.rt-terms-note a:hover { color: var(--rt-yellow-hover); }

/* ---- PayPal on product pages: same light-card treatment as cart and checkout ---- */
#product-info #paypal_message {
  background: #fff; color: #1a1d29; border: 1px solid #d9dcea; border-radius: 12px;
  padding: 10px 16px; margin: 14px 0;
}
#product-info #paypal_message a { color: #0b57d0; }
#form-product #paypal_button {
  flex: 0 0 100%; width: 100%; max-width: 100%; margin: 18px 0 0 0 !important;
  background: #fff; color: #1a1d29; border: 1px solid #d9dcea; border-radius: 16px !important;
  padding: 18px 18px 12px !important; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); text-align: left !important;
}
#form-product #paypal_button::before {
  content: "\f023  Or buy now with PayPal";
  font-family: "Font Awesome 6 Free", "Inter", sans-serif; font-weight: 900;
  display: block; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid #e6e8f1;
  font-size: 13px; letter-spacing: .3px; color: #4b5068;
}
#form-product #paypal_button #paypal_button_container { width: 100% !important; display: block !important; }
