/*
Theme Name: PhoneFarm ROMs
Theme URI: https://phonefarm.vn/
Author: Cascade AI
Author URI: https://phonefarm.vn/
Description: A custom theme for displaying and selling ROMs, based on the PhoneFarm.vn design.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-background, custom-logo, custom-menu, e-commerce
Text Domain: phonefarm-roms
*/

/* Add custom styles below */

/*--------------------------------------------------------------
# Single Product Page
--------------------------------------------------------------*/
.product-details-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.product-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.product_title {
    margin: 0;
    font-size: 28px;
}

.product-layout-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Left Column */
.product-left-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-image-box {
    background-color: #f0ebe5;
    border-radius: 8px;
    padding: 20px;
}

.product-image-gallery img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.product-additional-info, .product-viewers-info {
    background-color: #fdf5f6;
    border: 1px solid #fbe0e3;
    padding: 15px;
    border-radius: 5px;
    font-size: 14px;
}

.product-additional-info p, .product-viewers-info p {
    margin: 0 0 8px;
    display: flex;
    align-items: center;
}
.product-additional-info p:last-child, .product-viewers-info p:last-child {
    margin-bottom: 0;
}

.product-additional-info i, .product-viewers-info i {
    margin-right: 10px;
    color: #e60000;
}

/* Right Column */
.product-right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.price-box {
    background-color: #ff8a00;
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-box .price {
    margin: 0;
    font-size: 28px;
    font-weight: bold;
}

.price-box .original-price {
    font-size: 18px;
    text-decoration: line-through;
    opacity: 0.8;
    margin-right: 10px;
}

.activation-button {
    background-color: #e60000;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

.important-notice {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
    font-size: 14px;
}

.features-box {
    background-color: #f7f7f7;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 5px;
}

.features-box h3 {
    margin: 0 0 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.features-box h3 i {
    color: #ff8a00;
    margin-right: 10px;
}

.features-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 15px;
}

.features-box ul li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 10px;
}

.features-box ul li::before {
    content: '\2714';
    position: absolute;
    left: 0;
    color: #e60000;
}

.product-options .option-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.product-options label {
    font-weight: bold;
    margin-right: 10px;
    min-width: 80px;
}

.option-tag {
    background-color: #eee;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    margin-right: 8px;
    cursor: pointer;
    border: 1px solid #ddd;
}

.option-tag:hover, .option-tag.active {
    background-color: #e60000;
    color: #fff;
    border-color: #e60000;
}

.add-to-cart-area {
    display: flex;
    gap: 10px;
    align-items: center;
}

.quantity-input {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.quantity-input button {
    background-color: #f5f5f5;
    border: none;
    width: 35px;
    font-size: 18px;
    cursor: pointer;
}

.quantity-input .qty {
    width: 50px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

.single_add_to_cart_button, .buy_now_button {
    flex-grow: 1;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

.single_add_to_cart_button {
    background-color: #e60000;
    color: #fff;
}

.buy_now_button {
    background-color: #333;
    color: #fff;
}

.support-hotline {
    text-align: center;
    font-size: 15px;
    font-weight: bold;
    color: #e60000;
}


/*--------------------------------------------------------------
# General Layout
--------------------------------------------------------------*/
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Top Bar */
.header-top-bar {
    background-color: #f5f5f5;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.header-top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top-bar a {
    color: #333;
    text-decoration: none;
}

.header-top-bar a:hover {
    color: #e60000;
}

.header-top-bar .top-bar-left span {
    margin-right: 15px;
}

.header-top-bar .top-bar-left i {
    color: #e60000;
}

/* Main Header */
.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15px;
}

.site-branding {
    max-width: 250px;
}
.site-branding img {
    max-height: 50px;
    width: auto;
}

.header-search {
    flex-grow: 1;
    margin: 0 30px;
}

.search-form {
    position: relative;
}

.search-field {
    width: 100%;
    padding: 10px 45px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.search-submit {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 45px;
    border: none;
    background-color: #e60000;
    color: #fff;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
}
.search-submit:hover {
    background-color: #cc0000;
}

.header-info {
    display: flex;
    align-items: center;
}

.header-phone, .header-account, .header-cart {
    margin-left: 20px;
}

.header-phone span {
    font-weight: bold;
    font-size: 16px;
    color: #e60000;
}

.header-account a, .header-cart a {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
}
.header-account a:hover, .header-cart a:hover {
    color: #e60000;
}

.header-cart {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: #e60000;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
}

/* Main Navigation */
.main-navigation {
    background-color: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.main-navigation .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-navigation ul li {
    margin-right: 25px;
}

.main-navigation ul li a {
    display: block;
    padding: 15px 0;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
    color: #e60000;
}

.delivery-button {
    background-color: #e60000;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}
.delivery-button:hover {
    background-color: #cc0000;
}

/*--------------------------------------------------------------
# Page Content
--------------------------------------------------------------*/
.site-content {
    padding: 40px 0;
    background-color: #f9f9f9;
}

/*--------------------------------------------------------------
# Toolbar
--------------------------------------------------------------*/
.toolbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 10px 15px;
    font-size: 14px;
}

.result-count {
    margin: 0;
}

.rom-ordering .orderby {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
}

.mod-rom-button {
    background-color: #e60000;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
}
.mod-rom-button:hover {
    background-color: #cc0000;
}

.view-options {
    display: flex;
    align-items: center;
}

.view-options a {
    color: #333;
    text-decoration: none;
    margin-left: 10px;
    font-size: 20px;
    border: 1px solid #ddd;
    padding: 5px 8px;
    border-radius: 3px;
}
.view-options a.active {
    color: #e60000;
    border-color: #e60000;
}


/*--------------------------------------------------------------
# Product Grid
--------------------------------------------------------------*/
.rom-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.rom-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
    text-align: center;
}

.rom-item:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.rom-item-inner {
    display: flex;
    flex-direction: column;
}

.rom-image-wrapper {
    position: relative;
    background-color: #f7f7f7;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.rom-image-wrapper img {
    max-width: 100%;
    height: auto;
    max-height: 220px;
}

.sale-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #e60000;
    color: #fff;
    padding: 3px 8px;
    font-size: 13px;
    font-weight: bold;
    border-radius: 5px;
}

.rom-details {
    padding: 20px;
}

.rom-title {
    font-size: 18px;
    margin: 0 0 10px;
}

.rom-title a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

.rom-title a:hover {
    color: #e60000;
}

.rom-price {
    margin-bottom: 15px;
}

.rom-price .price {
    color: #e60000;
    font-size: 20px;
    font-weight: bold;
    margin-right: 10px;
}

.rom-price .original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 16px;
}

.rom-tags span {
    display: inline-block;
    background-color: #f0f0f0;
    color: #555;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    margin: 5px 2px 0;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.site-footer {
    background-color: #c90000;
    color: #fff;
}

.footer-widgets {
    padding: 50px 0;
    border-bottom: 1px solid #d63333;
}

.footer-widget-area {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-widget .widget-title {
    font-size: 18px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-widget, .footer-widget a {
    color: #fff;
    text-decoration: none;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.contact-info p {
    margin: 0 0 10px;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 10px;
}

.social-icons a {
    font-size: 20px;
    margin-right: 15px;
}

.bank-info img {
    max-width: 120px;
    margin-bottom: 10px;
}

.site-info {
    padding: 20px 0;
    font-size: 14px;
}

.site-info .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.payment-methods img {
    max-height: 25px;
}



html {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1 0 auto;
    padding: 40px 0;
    background-color: #f9f9f9;
}

.site-footer {
    flex-shrink: 0;
}

